Get Languages
Used to fetch all languages configured for a project. This API returns a list of languages associated with the provided projectKey.
API Endpoint
| Property | Value |
|---|---|
| Request Method | GET |
| Request URL | https://api.seliseblocks.com/uilm/v1/Language/Gets |
Request
Request Example
curl -X GET 'https://api.seliseblocks.com/uilm/v1/Language/Gets?ProjectKey=YOUR_PROJECT_KEY' \
-H 'accept: text/plain' \
-H "x-blocks-key": YOUR_PROJECT_KEY
Request Headers
| Field | Type | Description |
|---|---|---|
| Content-Type | application/json | Data type, must be application/json. |
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| ProjectKey | string | Yes | The x-blocks key for your project, available in the Environment Overview page. |
note
If the x-blocks-key header is not included, the API will return a 200 OK response, but the data returned will not be specific to your project.
Response
Success Response
Returns an array of language objects with HTTP status 200 OK.
[
{
"itemId": "b174cab5-bc17-48e3-8411-d58f0c530d32",
"languageName": "English",
"languageCode": "en-US",
"isDefault": true,
"projectKey": null
},
{
"itemId": "578b5101-a0fb-4f9b-817d-2fe38eec0a06",
"languageName": "German",
"languageCode": "de-DE",
"isDefault": false,
"projectKey": null
},
{
"itemId": "4a50e9bb-5703-4a67-af95-e89bcbed6464",
"languageName": "Bengali",
"languageCode": "bn-BD",
"isDefault": false,
"projectKey": null
}
]
Response Fields
| Field | Type | Description |
|---|---|---|
| itemId | string | Unique language record identifier. |
| languageName | string | The readable name of the language. |
| languageCode | string | The language code (e.g., en, bn, fr). |
| isDefault | boolean | Whether this language is the default one. |
| projectKey | string | The project key associated with the language. |